package com.biboheart.adapter.compiler.enums;

import com.biboheart.adapter.support.BaseEnum;

public enum NodeType implements BaseEnum<String, String> {
    NODE_ROOT("root", "根"),
    NODE_COMMAND("command", "指令"),
    NODE_OPERATOR("operator", "运算符"),
    NODE_VARIABLE("variable", "变量"),
    NODE_CONSTANT("constant", "常量"),
    ;
    private final String code;
    private final String desc;

    NodeType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String desc() {
        return desc;
    }
}
